<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="/struts-tags"  prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'add.jsp' starting page</title>

  </head>
  
  <body>
  <h1>添加</h1>
     <s:form action="addStockAction" method="post">
        <s:textfield name="stock.sname"/>
        <s:textfield name="stock.count"/>
        <s:submit value="提交"></s:submit>
     </s:form>
  </body>
</html>
